package com.realestate.services;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.realestate.constants.ComTxManagerName;
import com.realestate.dao.ProvinceDao;
import com.realestate.model.BrtbProvince;

@Service
public class ProvinceServiceImpl implements ProvinceService{
	
	@SuppressWarnings("unused")
	private static final Logger LOGGER = Logger.getLogger(ProvinceServiceImpl.class);
	
	@Autowired
    private ProvinceDao provinceDao;

	@Transactional(value = ComTxManagerName.COM_TRANSACTION_MANAGER)
	@Override
	public List<BrtbProvince> getAllProvinces() {
		return provinceDao.getAllProvinces();
	}
}
